package tech.aichan.AiQA.esrepo;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import tech.aichan.AiQA.model.entity.es.AppES;
import tech.aichan.AiQA.model.entity.es.ItemES;

import java.util.List;

/**
 * @author mengyu
 * @date 2024/03/04 19:44
 * App ESRepo接口
 */
@Repository
public interface AppESRepo extends ElasticsearchRepository<AppES, Long> {
    // 通过字段all查找
    List<AppES> findByAppName(String all);

    // 通过字段all分页查询
    Page<AppES> findByAppName(String all, Pageable pageable);
}
